@extends('admin::layouts.master')
@section('title')
    {{$title}}
@endsection
<style>
    .layui-input-inline {
        padding-top: 10px;
    }
</style>
@section('tab')
    <div class="layui-fluid">
        <div class="layui-row">
            <form class="layui-form">
                @if($detail)
                    <div class="layui-form-item">
                        <label for="L_alias" class="layui-form-label">
                            <span class="x-red">*</span>门店名称</label>
                        <div class="layui-input-inline" style="width: 60%">{{$detail['name']}}</div>
                    </div>

                    <div class="layui-form-item">
                        <label for="L_alias" class="layui-form-label">
                            <span class="x-red">*</span>联系方式</label>
                        <div class="layui-input-inline" style="width: 60%">{{$detail['phone']}}</div>
                    </div>

                    <div class="layui-form-item">
                        <label for="L_alias" class="layui-form-label">
                            <span class="x-red">*</span>公司log</label>
                        <div class="layui-input-inline" style="width: 60%">
                            <img class="layui-upload-img" src="{{$detail['logo']['full_src']}}" height="100"
                                 width="150">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label for="L_alias" class="layui-form-label">
                            <span class="x-red">*</span>地址</label>
                        <div class="layui-input-inline" style="width: 60%">{{$detail['province_name']['name']}}
                            - {{$detail['city_name']['name']}} - {{$detail['area_name']['name']}}</div>
                    </div>
                    <div class="layui-form-item">
                        <label for="L_alias" class="layui-form-label">
                            <span class="x-red">*</span>详细地址</label>
                        <div class="layui-input-inline" style="width: 60%">{{$detail['address']}}</div>
                    </div>

                    @if($detail['type'])
                        <div class="layui-form-item">
                            <label for="L_alias" class="layui-form-label">
                                <span class="x-red">*</span>检测站类型</label>
                            <div class="layui-input-inline" style="width: 60%"> {{$detail['type']['title']}} </div>
                        </div>
                    @endif

                    @if($detail['checkpoint_service_type'])
                        <div class="layui-form-item">
                            <label for="L_alias" class="layui-form-label">
                                <span class="x-red">*</span>服务类型</label>
                            <div class="layui-input-inline" style="width: 60%">
                                @foreach($detail['checkpoint_service_type'] as $name)
                                    {{$name['title']}}  &nbsp &nbsp &nbsp
                                @endforeach
                            </div>
                        </div>
                    @endif

                    @if($detail['expenses'])
                        <div class="layui-form-item">
                            <label for="L_alias" class="layui-form-label">
                                <span class="x-red">*</span>年检费用</label>
                            <div class="layui-input-inline" style="width: 60%">{!! $detail['expenses'] !!}</div>
                        </div>
                    @endif

                @else
                    该用户未配置门店信息
                @endif
            </form>
        </div>
    </div>

@endsection





